import {HTTP} from '../utils/http'

class RegisterApi extends HTTP {
    /**
     * 注册
     * POST /sys-user/userRegister
     */
    userRegister(data){
        return this.request({
            url: '/sys-user/userRegister',
            data: data,
            method:'post'
        })
    }

    /**
     * 注册、更换手机号发送验证码
     */
    sendCode(data){
        return this.request({
            url: 'sys-user/registerSendVerifyCode',
            data: data,
            method:'post'
        })
    }
    /**
     * 判断验证码是否正确
     *  /sys-user/checkVerifyCode
     */
    checkVerifyCode(data){
        return this.request({
            url: '/sys-user/checkVerifyCode',
            data: data,
            method:'post'
        })
    }
}
export default new RegisterApi
